#include <iostream>
#include <stdio.h>


void XuanZePaiXu(){
	int arr[] = {3,44,38,5,47,15,36,26,27,2,46,4,19,50,48};
	int length = sizeof(arr)/sizeof(int);
	int minIndex,temp; 
	for (int i = 0;i<length-1;i++){
		minIndex = i;
		for (int j = i+1;j<length;j++){
			if (arr[j] < arr[minIndex]){
				minIndex = j;
			}
		}
		temp = arr[i];
		arr[i] = arr[minIndex];
		arr[minIndex] = temp;
	}
	for (int a = 0;a<length;a++){
		printf("%d ",arr[a]);
	}
	return;
}

int main(){
	XuanZePaiXu();
	return 0;
}